package com.example.yichuangyun.http;

public class ApiFactory {

    private static final boolean isRelease = true;
    public static final String BASE_SERVER = isRelease ? "https://yichuangyun.yikaiye.com" : "https://uat-service.yikaiye.com";
    public static final String PC_SERVER = isRelease ? "https://service.yikaiye.com" : "https://uat-service.yikaiye.com";
    public static final String PerformanceReport = isRelease ? "https://ykyrpt.yikaiye.com" : "https://uat-service.yikaiye.com";
    public static final String COMPANY_URL = isRelease ? "https://qiye.yikaiye.com" : "https://uat-qiye-service.yikaiye.com";
    public static final String FILE_URL = isRelease ? "https://i.yikaiye.com" : "https://d.yikaiye.com";

    /**
     * 图片上传 前缀
     */
    public static final String IMAGE_UPLOAD = "https://ycydown.yikaiye.net/";
    /**
     * 产品图片前缀
     */
    public static final String PRODUCT_URL = "https://i.yikaiye.com";

    /**
     * 获取验证码
     */
    public static final String getVCode = BASE_SERVER + "/login-part/serv/auth/ycy/phone";

    /**
     * 验证码登录
     */
    public static final String codeLogin = BASE_SERVER + "/login-part/serv/ycyCaptchaLoginNew";
//    public static final String codeLogin = BASE_SERVER + "/login-part/serv/ycyCaptchaLogin";

    /**
     * 丢单
     */
    public static final String lostOrder = BASE_SERVER + "/api/crm/app/business/lostChance";

    /**
     * 废弃商机
     */
    public static final String discardBusiness = PC_SERVER + "/crmapi/business/discardBusiness";

    public static final String selectOrderInfo = PC_SERVER + "/crmapi/business/selectOrderInfo";

    /**
     * 呼叫限制
     */
    public static final String numberLimit = BASE_SERVER + "/api/call/zsTzTrack/getCount";

    /**
     * 字典项
     */
    public static final String findByType = BASE_SERVER + "/api/call/dict/findByType/";

    /**
     * 判断黑名单
     */
    public static final String checkPhone = BASE_SERVER + "/api/call/zs-tz-black-list/checkPhone/";

    /**
     * 用户信息
     */
    public static final String getUserInfo = BASE_SERVER + "/api/call/callSoa/getUser";

    /**
     * 上传录音
     */
    public static final String uploadRecord = BASE_SERVER + "/record/upload";

    /**
     * 上传文件
     */
    public static final String upload = BASE_SERVER + "/api/call/record/upload";

    /**
     * 上传通话记录
     */
    public static final String uploadCallRecord = BASE_SERVER + "/api/call/zsTzTrack/add";

    /**
     * 获取版本号
     */
    public static final String getVersionInfo = BASE_SERVER + "/api/call/callSoa/version";

    /**
     * 电话号码是否脱敏
     */
    public static final String desensitization = BASE_SERVER + "/api/call/callSoa/desensitization";

    /**
     * 私库剩余额度
     */
    public static final String getPriCount = BASE_SERVER + "/api/call/zsTzInfoBasic/priCount";

    /**
     * 商机详情一编辑商机
     */
    public static final String editBusinessDetail = BASE_SERVER + "/api/crm/app/business/editBusinessDetail";

    /**
     * 统计日报
     */
    public static final String getStatistics = BASE_SERVER + "/api/call/zsTzTrack/getStatistics";

    /**
     * 我的日程
     */
    public static final String getBacklogSchedule = BASE_SERVER + "/api/call/zsTzTrack/findByDate";

    /**
     * 查看每个月的日程日期
     */
    public static final String getMonthBlocklog = BASE_SERVER + "/api/call/zsTzInfoBasic/findByMoth";

    /**
     * 绑定客户端id（推送）
     */
    public static final String bindCid = BASE_SERVER + "/api/call/callSoa/";

    /**
     * 扫码登录
     */
    public static final String scan_login = PC_SERVER + "/login-part/ycy/login-scan";

    /**
     * 本月业绩统计
     */
    public static final String getMonthPerformanceReport = PerformanceReport + "/api/report/app/yj";

    /**
     * 本月佣金统计
     */
//    public static final String getMonthCommissionReport = PC_SERVER + "/api/sys-commission/getSumMyCommissionAmount";
    public static final String getMonthCommissionReport = PC_SERVER + "/api/sys-commission/findCommissionAmountDetail";

    /**
     * 查看业绩统计详情
     */
    public static final String getMonthPerformanceReportDetail = PerformanceReport + "/api/report/app/xsyj/number/detail";

    /**
     * 查看签单统计详情
     */
    public static final String getSignContactReportDetail = PerformanceReport + "/api/report/app/xsyj/number/detail";

    /**
     * 查看佣金统计详情
     */
//    public static final String getCommissionStatistics = PC_SERVER + "/api/sys-commission/selectMyCommissionList";
    public static final String getCommissionStatistics = PC_SERVER + "/api/sys-commission/findCommissionList";

    /**
     * 查看招商统计详情
     */
    public static final String getAttractReportDetail = PerformanceReport + "/api/report/jx/app/zs";

    /**
     * 查询其他类型（公司注册，税务筹划，高企等等）资源池列表
     */
    public static final String getOtherClue = BASE_SERVER + "/api/call/resource/pool/other/list";

    /**
     * 组织机构
     */
    public static final String getOrgTree = BASE_SERVER + "/login-part/serv/user/getOrgTree";

    /**
     * 添加共享人
     */
    public static final String saveShare = PC_SERVER + "/crmapi/business/saveShareInfo";

    /**
     * 订单记录
     */
    public static final String getOrderList = BASE_SERVER + "/api/crm/app/business/records/order/";

    /**
     * 商机竞选（名大大）
     */
    public static final String campaignMdd = BASE_SERVER + "/api/call/resource/pool/mdd/";

    /**
     * 获取管帮手录音文件
     */
    public static final String getRecordUrl = BASE_SERVER + "/api/call/record/findByName/";

    /**
     * 获取电话系统录音文件
     */
    public static final String getPcRecordUrl = BASE_SERVER + "/api/call/record//downQiniu400/";

    /**
     * 获取意向产品列表树
     */
//    public static final String getProductTree = PC_SERVER + "/api/sys-business/selectPool";
    public static final String getProductTree = PC_SERVER + "/api/sys-business/selectPoolForApp";

    /**
     * 新增商机
     */
    public static final String saveBusiness = BASE_SERVER + "/api/crm/app/business/saveBusiness";

    /**
     * 商机列表
     */
    public static final String getBusinessList = BASE_SERVER + "/api/crm/app/business/getBusinessList";

    /**
     * 商机类型
     */
    public static final String getBusinessType = BASE_SERVER + "/api/crm/app/business/getButtonList";

    /**
     * 商机详情
     */
    public static final String getClientDetails = BASE_SERVER + "/api/crm/app/business/selectBusinessDetail";

    /**
     * 商机详情-资料详情
     */
    public static final String getInformationDetail = BASE_SERVER + "/api/crm/app/business/getInformationDetail";

    /**
     * 根据公司名称模糊查询信息
     */
    public static final String getInfoByCompanyName = BASE_SERVER + "/api/crm/app/business/selectByCompanyName";

    /**
     * 根据公司名称模糊查询信息（启信宝）
     */
    public static final String getCompanyByQxb = BASE_SERVER + "/api/enterprise/inner/qxb/advSearch";

    /**
     * 通话记录
     */
    public static final String getBusinessCallLog = BASE_SERVER + "/api/crm/app/business/businessCallLog";

    /**
     * 跟进记录
     */
    public static final String getFollowLog = BASE_SERVER + "/api/crm/app/business/selectFollowList";

    /**
     * tab页跟进记录
     */
//    public static final String getTabFollowLog = BASE_SERVER + "/api/crm/app/business/getTabFollowList";
    public static final String getTabFollowLog = BASE_SERVER + "/api/crm/app/business/selectFollowListAll";

    /**
     * 添加跟进
     */
    public static final String addFollowUp = BASE_SERVER + "/api/crm/app/business/addFollowTel";

    /**
     * 添加跟进
     */
    public static final String addContactsFollowUp = BASE_SERVER + "/api/crm/app/t-contact-info/saveContractFollow";

    /**
     * 商机来源
     */
    public static final String getBusinessSource = PC_SERVER + "/crmapi/business/getBusinessSource";
    /**
     * 联系人来源
     */
    public static final String getContactsSource = BASE_SERVER + "/api/crm/t-contact-info/getContactSource";

    /**
     * 检测是否有按钮权限
     */
    public static final String checkButtonOrTab = BASE_SERVER + "/api/crm/app/business/checkButtonOrTab";

    /**
     * 获取商机来源
     */
    public static final String getSources = BASE_SERVER + "/api/crm/app/business/getSources";

    /**
     * 回拨外呼
     */
    public static final String callbackOutbound = PC_SERVER + "/crmapi/call/businessCall/callPhone";

    /**
     * 联系人跟进记录
     */
    public static final String getContactsFollowLog = BASE_SERVER + "/api/crm/app/t-contact-info/listContractFollowInfo";

    /**
     * 联系人类型
     */
    public static final String getContactsType = BASE_SERVER + "/api/crm/app/t-contact-info/getButtonList";

    /**
     * 获取eid
     */
    public static final String getEid = PC_SERVER + "/crmapi/business/selectOdsEnterpriseByCompanyName";

}
